Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Objects /
Chapter 4 - Colors and Color-Related Objects / Colors and Color-Related Objects Reference
Constants and Data Types


Color Values

Color-component values combine to form color values. Each color value is a complete specification of a single color in a given color space. QuickDraw GX recognizes the following ten fundamental types of color values:

   struct gxCMYKColor{
      gxColorValue   cyan;
      gxColorValue   magenta;
      gxColorValue   yellow;
      gxColorValue   black;
   };
   struct gxRGBColor{
      gxColorValue   red;
      gxColorValue   green;
      gxColorValue   blue;
   };
   struct gxRGBAColor{
      gxColorValue   red;
      gxColorValue   green;
      gxColorValue   blue;
      gxColorValue   alpha;
   };
   struct gxHSVColor{
      gxColorValue   hue;
      gxColorValue   saturation;
      gxColorValue   value;
   };
   struct gxHLSColor{
      gxColorValue   hue;
      gxColorValue   lightness;
      gxColorValue   saturation;
   };
   struct gxXYZColor {
      gxColorValue   x;
      gxColorValue   y;
      gxColorValue   z;
   };
   struct gxYXYColor {
      gxColorValue   capY;
      gxColorValue   x;
      gxColorValue   y;
   };
   struct gxLUVColor {
      gxColorValue   l;
      gxColorValue   u;
      gxColorValue   v;
   };
   struct gxLABColor {
      gxColorValue   l;
      gxColorValue   a;
      gxColorValue   b;
   };
   struct gxYIQColor{
      gxColorValue   y;
      gxColorValue   i;
      gxColorValue   q;
   };
   struct gxGrayAColor{
      gxColorValue   gray;
      gxColorValue   alpha;
   };
   typedef long gxColorIndex;

   struct gxIndexedColor{
      gxColorIndex   index;
      gxColorSet     set;
   };

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996